﻿package mortal.game.view.systemSetting
{
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class ClientSetting extends Object
    {
        public static var server:ClientSettingInfo = new ClientSettingInfo();
        public static var local:ClientSettingInfo = new ClientSettingInfo();
        public static var defualt:ClientSettingInfo = new ClientSettingInfo();
        public static var isChanged:Boolean = false;
        public static var isInited:Boolean = false;

        public function ClientSetting()
        {
            return;
        }// end function

        public static function save(param1:Boolean = false) : void
        {
            isChanged = false;
            server.copy(local);
            var _loc_2:* = local.getString();
            Dispatcher.dispatchEvent(new DataEvent(EventName.SystemSettingSava, {type:SystemSettingType.ClientSetting, value:_loc_2, isNotTip:param1}));
            return;
        }// end function

    }
}
